package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * @author: liukunlong
 * @date: 2021-03-05 09:41
 */
public class GroupChatListResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * group_chat_list : [{"chat_id":"wrOgQhDgAAMYQiS5ol9G7gK9JVAAAA","status":0},{"chat_id":"wrOgQhDgAAcwMTB7YmDkbeBsAAAA","status":0}]
     * next_cursor : tJzlB9tdqfh-g7i_J-ehOz_TWcd7dSKa39_AqCIeMFw
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * groupChatList
     */
    @JSONField(name = "group_chat_list")
    private List<GroupChatListDTO> groupChatList;
    /**
     * nextCursor
     */
    @JSONField(name = "next_cursor")
    private String nextCursor;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public List<GroupChatListDTO> getGroupChatList() {
        return groupChatList;
    }

    public void setGroupChatList(List<GroupChatListDTO> groupChatList) {
        this.groupChatList = groupChatList;
    }

    public String getNextCursor() {
        return nextCursor;
    }

    public void setNextCursor(String nextCursor) {
        this.nextCursor = nextCursor;
    }

    public static class GroupChatListDTO {
        /**
         * chatId
         */ /**
         * chat_id : wrOgQhDgAAMYQiS5ol9G7gK9JVAAAA
         * status : 0
         */

        @JSONField(name = "chat_id")
        private String chatId;
        /**
         * status
         */
        @JSONField(name = "status")
        private Integer status;

        public String getChatId() {
            return chatId;
        }

        public void setChatId(String chatId) {
            this.chatId = chatId;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }
    }
}
